fixing text selecion