fixed a bug
Stupid jacobian is stupidly singular