Fixing weird bug when selecting text in message