Fix "IndexError: list index out of range" error
Merge pull request #51 from jyap808/patch-1

Fix "IndexError: list index out of range" error