Flywheel help please

I’m doing the flywheel and piston rod tutorial in the Wiki. I got everything right and it works, but the bones are doing a little twist at the extremes of their travel. This causes the mesh to twist about 90 degrees. It happens and it’s over in three frames. The only clue I can fiind is that all the emptys are lined up when it happens.
Any help, please.