Fixed a selection bug.