Fixed several crashes, still won't open a world though