Use the right length (reported by Quanhong Wang).