TypeError: Cannot set property 'ANYPROPERTY' of undefined