Fixed "Cannot read property 'length' of undefined" && "This page has insecure content." warning