tmp folder bug fix