Fixed removing temporary files