Corrected lookup table misalignment bug for long sequences.