Bugfix for document index view