fix some error messages