fixed a bug when server_tag was used