fix bug + loop to set long and lat for all flats