Fixed some bug; Removed getIndexedArray()