fixed temp dir issue