Corrected undefined geolocation bug on Mozilla Firefox