fixed tmp dir issue