bug fix in GMAP formula