avoid error output in debug mode