Fixed an error in Category model