Removing merging marks