Fix a bug in the persist code when specifying a custom world name.