fixing character creation code that was broken