Best way to solve is a new micro switch - luckily its a common BMW part used on the 3 series also, so nice and cheap. Mine became twisted and warped and wouldn't stay in it's holder in the boot. Think the replacement was only a few quid (who little unit - not just the metal tab) and it's been fine since.