mouse events fix