Fix metamorph start and end tags have different parents error