It seems like "argument" is read-only now, you can fix it by updating the script like this:
Thank you for the Update, haven't gotten the time yet to look into it before but it works now perfectly!