fix bug of create post with new cateogry failed to add category