fixes legends