Fix undefined variables in visitor meta routines

Fixes necessary for this module and the API to work