fix legenda