Fixed selection bug where mouse-pressed handlers weren't cleaned up