Fix multiline selection bug