Fix bugs in loading legacy levels

Bugs I found when testing some old levels