fixed saving roles when submitting