modify the func of CheckConfig