OnTriggerExit doesn't work after OnTriggerEnter

Hi, I’m using a very simple script to parent a object to a moving platform.

function OnTriggerEnter (other : Collider) {
other.transform.parent = transform;
}

function OnTriggerExit (other : Collider) {
other.transform.parent = null;
}

As far as I can remember this worked before, but it has stopped doing so (I have upgraded to 3.3.something in the mean time).
It still parents the object, but it no longer un-parents it.
I’ve solved this by adding another trigger and splitting up the script in to two. But that is just an ugly hack.
Any thoughts anybody?

Just found a workaround that’s a bit better:

private var Activated = false;

function OnTriggerEnter (other : Collider) {
if (!Activated){
other.transform.parent = transform;
Activated = true;
}
}

function OnTriggerExit (other : Collider) {
Activated = false;
other.transform.parent = null;
}