By looking at the code that does not work I can determine why. once we can determine what is wrong in the code, it may shed some light on why the code is being written incorrectly.
I have tested on forms I created using earlier versions of validation toolkit and then updating the code with version 2.3.5 and did not run into a problem.
Looking at the code that is failing is the first step to determining why the code is not being generated properly.