Fixing script warnings