Fix Next page not working