bugfix for prev/next navigation