Fix issue #32: single line selection doesn't work