[FIX] corrected bug in indexing of stiffness matrices