fixed bug first tree