Fixes categories validation