script capacitor fix