Fixed crashes when trying to gen a new world