Fixed a selection bug with the categories.