fix for Error objects