some fixes for printError() and printFatalError()