I am pretty sure this was a bug in the original script.  If not, please explain how this works.