fixed the character problem