Fixed selection stuff.