Fixed errors in run script.