error when create a character