fix save temp files