Fixed battery script