fixed bug regarding multiple legend in linegraph page