fixing pools priority bug