fix irrelevant error reporting