retaining tags after error on document create