fix connection flags type