Fix deleting the meshes.