fixed matrix transpose in exporter