fix the next and previous post