a bug fixed in the script