Fix to read config