Small cleanup
Fixed bug in Jacobi