fix category validation