fix glitch in selection