legend fix