fixed problem where last item doesn't build a pageBar item