Fixed issue in connect (Replacing old connection)