fixed bug in Category template when when specified category does not exist