Fixed few bugs in create category.