fixes in case of error printing : we should log class string, not ID.