Fix calculation of Jacobian with collapsed coordinates
Working linear prism