fixed bug in the getOptimalPhysicalPlan in Scan and root
before debug in the clusters