fix a bug with string in array