fix merge + delete metadata