Fixed errors generating paginator