Fixed legend (#1235)