undefined var hotfix