rtl_power: fix bugs with bin counting