fix mouse movement