Hi, I'm having the same problem, but after applying the above fix I'm then getting:
Reserved word 'effect' cannot be a key variable name (Harvest.ash, line 593)
I had a look at the script to see if I could apply a similar fix to the one for item, but my skills just aren't up to the job.