On the singularity issue of Jacobian

This is hard to debug.