fix trace error