Fix a bug when list has exactly one element
Merge pull request #11 from ichyo/list-fix

Fix a bug when list has exactly one element