replaced deprecated property 'global'