Fixed selection bug.