Collinearity fix
Merge pull request #230 from IngvarJackal/nonlinear-collinearity-fix

Collinearity fix