Yeah I don't know why that happens because I 'unlock' the cursor whenever any UI element appears, I'm sorry about that.