fixed bug in size of subtree