correct legend fix