Fixed bug where next and previous did
the same thing