fixed a bug that will repeatedly request the server.