Fixed error finding L and N sequence lengths.