I remember having a similar problem before with NPCs joined to the same class in one level, and if the player was in that level and executed a block of code with that NPC it'd execute twice. Though, I don't think that's the case here. Probably the missing bracket.