minor fixes on error messages