fixed the temp files