fixing chargen