Fix bug when adding server