fix error in extractSettings(...)