Fix issue with matrix tutorial