cleanup old references to node which are really elements