Fix undefined variables in visitor meta routines