Is "Level" the actual name of the CHARACTERSTAT? It's the only thing I can see that might be the issue after a quick glance at your code.