fix bug: performance bottlenecks caused by typo.