debug for removing empty merges