WYCS: bug fix for error reporting.