fix GMS script