Fixing bug with submitting category