fix array conversion issue