fixed bug for adding new category