Fixed some bugs in  character creation