Fixed a minor whoops with the linear algebra.