fixes stub objects to represent leafs and objects more accurately