Bug fixes

* Fixed stray line segment on mouse click