Fix bug when call tree is linear