fixed a bug on the battery widget when the battery was on 100% and connected to AC