fix upload when updating principal on operator page