Fix reading config