bug fixed for visitor