BugFix in Logging of Error