clear r_tmp issue #60