Fixed bug with going backwards through data