infinite loop errors fixed
Merge pull request #32 from chandeeland/3.3/master

infinite loop errors fixed (refs #4705)