Fix a bug setting the paginator properly

The paginator was not being set correctly, leading to a fatal error as
the line was executed.