fix visitor variable declaration