fix mouse events