fixed rando exception in matrix multiplication