Finally fixed next and previous buttons on posts.