fix connection unlock