fixes to level loading