fix mouse position deviation