Fix saving of visits.