fix temp files