Fixed bug in 'categories'