fixed some matrix multiplication issues