fix bug with defaults overriding actually set state and config