fixed ending where character still shown