Fix insert into tree