Fix problem with saving metadata
Add assets and attachments in metadata