Fix bug with variables in meta program functions.