Fixes to export matrix transforms correctly.