fix warning when use new_category