Fix script function2