Corrected an off by 1 error for ordinal data