Rescuing from NameError in visitors