Fixing a problem with the template engine when user tries to pass a global variable.