The brake pedal cap keeps dropping from its place. I have noticed that it mostly happens when I press the brake pedal with half of my foot. Is there a known fix for this? I am planning to drill a couple holes to the upper sides, and use cable ties for now, but I'm not sure of the outcome.
Here is the misbehaving cap. It seems it was messed with before me, and the metal pin (which I think is supposed to be a spring of sorts) has dropped when I tried to bend it a little. The protrusions on the pedal body itself look intact, but of course they might have worn off to the point where they hold on to the cap at the edge.

To non-Xantia people, why this is important: THE CAP IS THE BRAKE SWITCH.