Fix a minor mistake of bad calc on substr.