Fix battry widget bug