Fixed a few mistakes that made the game crash on launch