Fixing script loading