fixed startup crash on iOS when we ask for restricted startup orientation in Xcode
fixed matrix multiplication was creating too much temp data