fixing bug for saving sae