Fix selection new line issue