fix category_id bug when adding post