Fixed config extraction