Fixed calculation bug by defining primary radius