Fix bug caused by id instead of category name