Bugfix for error report