fix in method accumulate_power()

Third term should be ac_3 instead of ac_2 again.