fix the error of input frequency and program configuration