attempt to fix occasional duplicate visit creation