Update gmap.sh

fixed issue when wrong variable been used in remap function