Replace Tree fixed