small bug in visitor-memory