fix addCategory flow