fix bug in subtree decomposition when subtree size is large (hopefully)