Remapping buttons on controller bug

I swapped the melee button with the equipment button; however, when I use my melee it still uses whatever equipment I’m holding. Xbox One Series S.