fix matrix multiplication bug introduced in 31063933fc0ce54165c210e22a12cb6628e34e0c