Fixed bug in link_ca do_transition()

Tests show this is now working!