fix #427, #479
Merge pull request #484 from chenall/fix-issue-427

修正 list_categories的bug