bug in should visit fixed