quick fix to safeguard against invalid categories and brands