fix for error messages