legend fixes