Fixed error reporting again.