Category model bugfix