hotfix with undefined var