fix another bug in my even better error reporting :)