fix read config