Fix bug to connect to a site when there are more than 10 sites.