fix bug for value checking of MinPoolSize