Fix for debug.txt

Typo fix for labels and make gain magic xp work for level 1 magic too.