deal invalid config