fixed warning about 'Variable access via 'settings' is deprecated'