fixing bug with config