fix bug for service config