Fixed "undefined" bug with Facebook in Safari.