bugfix: corrected calculation of inverse matrix