fix marking previously external nodes as internal