fix in internal battery measurement