trying to solve TTree segfault issue