Fixing category validator