cache inverse matrix, fix