Fix ‘TypeError: Cannot set property 'VERSION' of undefined’