fixed going to blank page

fixed a bug when useing the "previous" button that would go to a blank
page