If you post a code snippet, ALWAYS USE CODE TAGS:
How to use code tags: Using code tags properly
If you change a mesh in the MeshFilter, it is up to you to assign it to the Mesh Collider as well, otherwise it will keep using the old unchanged mesh.