Fixed bug from Javascript Google API changes