Fix script running code.