Fixed bug in jacobian dot computation