v0.8: Fixes crash on level restart.