[math] buf fix on geodetic function