Add top and bottom edges and revert back to original IDs in metadata.json