cleanup duplicate traces