Fix Bug Of missing entry in the dict

Fix the bug in Subroot. But still not sure about the orders. Need to verify the .reverse