fix bug that use the wrong way to ArrayAdapter.