Fix bad save of file