detect selection if it contains last measure
Merge pull request #2 from heuchi/heuchi-fixDetectingSelection

detect selection if it contains last measure