Fixing bug can't create or edit categories