I think you can call `visit` in the select node here. Have you tried?