fix IndexOutOfBoundsException.
Merge branch 'master' of https://github.com/axks/ebshackathon