Fixing a typo which may cause the mode widgets to not update.