set-state when setting default.