fix bug of pitch size error