Fix bug: Widget is updated before preferences is set.