Fixing graph legend