Assigning new sharedMesh to mesh collider every frame doesn't work?

So i am making a tron like game and i am trying to collide my bike trail against other colliders. I used TronTrail script from unity procedural examples. I simply added a Mesh Collider and at the end of every update assign current trail mesh to sharedMesh of mesh collider. When i try to collide my bike against it, it doesnt work. My layer setup is correct, my bike doesnt use Mesh Colliders and isnt kinematic. Any ideas?

ScreenShot from paused game:
30157-trailcollide.jpg

I figured it out.
I only called meshCollider.sharedMesh = mesh; every frame. I added meshCollider.sharedMesh = null; a line before that and it works.