i had the same issue with the current version 1.5.10.1673, but the provided modified script did not worked for me.
This is modified script: https://pastebin.com/9ViJBATg
I have further modified the code, and it now functions correctly with the version 1.5.10.1673.
https://pastebin.com/xWhJkDX1