Fix some problems about the categories.