I had the same problem with some of the cheap ebay leds. The wedge is 5mm but it lacks thickness to make a snug fit - I had to bend the metal legs out a little to make it fit better.

Other branded leds like the 3A racing at autobarn have perfect snug fitment.