fix compute completion of plan