fix array creation.