I figured out the problem apparently at some point I added an extra / to a castsequence so it was //castsequence which was causing the whol click train to fail.

Once I pulled out the extra / it worked fine.