Fixed config reading