1 </p> tag too much + wrapped pagination in a conditional