Fix crash in adding server manually.