Protect from not owned idhash in doc