Fixed error when modifying the  setting in the Paginator object.