fix bug in labelconfig