Fix bug in text selection logic.
gulp