fix a bug for get server size