fixed some minor glitches with selection