fix bug: buy too much power