config read bug fix