Fixed bug in MouseLock Toggle

Fixed bug in MouseLock Toggle