fixes in categories class