fix config require check