fixed bug in visitor logging