runscript bug fix