Fixed the error "Cannot read property 'is' of undefined"