Fixing issue with nested documents always having the same seed