Fix the coord calculation for non-leaf levels