fixed issue with creating a new category