correct error messages