fixed matrix stack shit