Fixing access to preferences to reduce creation of new objects.