Fix $leave_temp in clear_temp() no issue #