fix array initialization