fixed variable typo in _apply_config()