caught bug for this.legend