fixed typo in withErrors