Fixed NPE when loading world.