fixed a bug of create category