Complex array conversion bug fixed