fix bug in label setting /legend