minor fix to prev/next. still buggy.