Fixed another way that traces could cause an assert fail.