Updated import_traces : fixed some bugs