fix foreign step in 'save'