fix random generate character