fixed bug with removing temp folder