fix connecting failing