Minor update to XMLLoader

Fixed bug when using the Level object in LevelBar