fixed bug when ommiting connected nodes in markup