fixed bug in nonlinsol for subspace equals 1