remove obsolete node, fix headline stack