fixing categories controller