fix _last_visit