Fixed matrix.c