fix bug in display of labels