fix a bug about the categories