Fixed bug with missing prev/next buttons