Fixed linear algebra return values