Fixed array conversion bug