Call setDefaultValues to ensure preferences are initialised correctly.