A better fix for mesh errors.