Fixed a flaw with how i create the matrices