[FIX] Correct add_trace by escaping %