Bug fix in matrix-vector multiply