fix for compare trace