fix tree callback