fix battery widget condition