OK, so my headlights have all gone a bit wrong. When I turn them on they will only go on full beams. I the part of the light stork apart and saw this

The little plastic bit looked totally out of place and I can't figure out where it's from / should go. Here's a close up of it.

Any ideas where it should go.
Thanks in advance for the help.
Andrew Evers