Fixing mouse events