small fix for error messages