fix run error in Script bug #7356