Fixed multi-output bug.
Made sure that u0 is ok.