fix method finishedConnection