Fixed bug with nodes not being deleted at cohesive element creation