fixed and tested chara installation code