Fixed matrix issue with transposition.