fix some string to array errors