fix battery plugin