Fix the table generation for string ids