fixing bug that prevented categories from being created