correct the legends