Fixed falure on second connect.