Fix runtime error

Fixes error when altering the world while saving.