Fix category form errors