fixed some bugs in server selector