Fix new task category add bug