fix the character's bug