If I were you, the first thing I'd check is how skills are loaded from database to populate the skills variable (such loading is commonly done in MapleCharacter, although I don't know which source you're working with).
Off the top of my head, I'd suggest making sure that you're not filling the...