Bugfix of listing of documents