fix string to array conversion error