Fixed NullPointer for Next/Prev.