Fix bags of power operation.