fix array-error error