fix deletion of content elements