lec_13 matrix fix