Fix exception thrown during the initialization of Pagination

It also fixes the showcase application, which was not working for the Component section.