- get doc by attribute bugfix