fix max pool size guard