bug fixed the categories controller