Fixing distance calculator index