Fixed a bug where lookup maps were missing some links after dummy nodes were removed.