Fixes Issue #101 Crashes on cancelling selection

Fix for Issue #101