fix a server bug