Correction for autofarm script

The autofarm script in your head is broken and needs this commit merged to fix it.