fix array dimension