fix off-by-one in pool limits