bug fix where visitor wasn't being persisted