bugfix for docDAO