fixed bug of metadata server.