Improved merging of failure tree.