fix graph legend