fix Movemouse function