Fixed problem with more than one output (y vector).