Fixes problem with gmap