bug fix in saving field map file