Bugfix for documents with no siblings