Fixed config logic.