Am unsure why the issue happened, but am glad the script is now working for you...
In reply to Re^3: loop issue by Kenosis in thread loop issue by chefchanyu