Fixed removing of mouse events.