remove old embedded objects on save