Fix bug with calendar preferences.