sometimes cannot select to end or beginning of line