improve error message on missing category