fix in logger and commpare trace