Fixed crash on creating chaarcter