fixed config reading