Fix GMap script bug