Fix category name retrieval.