Check the hierarchy before doing the sizes