Fix error when submitting changes when editing a competition.