Recursive $vars bugfix.