fixed bug in itreemap (incomplete trees)