fix a selection glitch