fix array problem