Interestingly the script worked fine here without this change. What problem has encountered on your system?