Fix bug to delete a site when there is only one site.