fixed missing tmp cleanup

fixed missing tmp cleanup