Fix ordinal calculation.