Fix crash on worlding saving/loading. Fixes #38.