Fix bug with mouse select from ssh