fix incorrect legends