hotfix in infer_power.