fixed the path of temp file