Reassign layers after adding dummy nodes.