Fixed a few bugs and crashes, next up is model rendering!