Fix the size inconsistency between sentence length and mapping table