fix function remove_tmptv2