Mesh fixing in Newton