fix trace messages