Fixing a selection bug.