fix array parsing