improved errorFocus behavior