Fix withPagination attribute