errorExpected fix