fixed issue on index() module
Merge pull request #2 from alaminopu/master

fixed issue on index() module