fix: htc_battery_core array out of bounds