Bug fix: jacobians were wrong