@Oddball You forgot to unset %a,%c and %c3.
For temporary variables like this, it is much better to use /var than /set.
This way you don't have to unset them.
You also didn't set a channel variable in the last On Text event so it just uses %c3 from the last match to the second On Text event. You should really combine those two events.