an attempt to fix the server select bug.