Fix crash with polygon. Disable ellispoidmode. Warning: Might give wrong distance in some cases