fixed bug if number of entries of input trees are different and file is skiped.