Fix duplicate magnitude key