fix config validate