fix bug in error report
 add type