fix mouse input