fixed deleting temp files