fixed regression on mouse events