correct config errors