Hotfix to prevent local var errors

Related to changes from "Proper globalvar support"