Hotfix/unserializer with passed document