Add missing </ul> tag in pagination