Fix bug in histories with no links