fixed error in great circle calculations