fixed find sequence length result bug