repair merged doc for new layout