fix trace for NON JS PLatform