fixed a little bug: after empty the array I have to reinitialize the currentindex
Merge pull request #3 from jerrygdm/master

fixed a little bug: after empty the array I have to reinitialize the currentIndex