Corrections and preparations for new mesh.