Fix strange first legend

Fix #661