Fix bug of poolUnits used jointly with dsn