Bug fix.  Substitute line was sometimes using the wrong register