Fixed bug in category definition