I will post the fix later. If you liked my script, you may give me some tip here:
I posted the latest version of the script in the first message of this thread.
All code fixes and updates will be posted for now on in the first message.
Here you are the results I got when I run the script (you are welcome to post yours):