fix reverse index, maxlimits