Improve checks of Jacobian