legend correction