fix nas condicoes paginating/maxPagesReachd (view)