selection now shows text correctly