fix rete visit after cleanup