fixed file save error