fix bug in calltree to insert a sub function