Fixed prevButton bug