Fix logic error in adding server