Fix text fields being cleared after chosing a connection