Fixed some bugs
Fixed a problem where the matrices didnt export correct.