Properly generate the new plan with the new query