Selects the connection when creating it. fix #31