mgsolve correction