fix print_trace