I had the same problem with this script in version 7. I downloaded the latest version and it worked. Try that.

Best