char table generation fix