Fix graph layout change on content element deletion