Fixed bug in run script.