set correct errors