fix graph legends