bug fixes in index
Merge pull request #5 from rajithv/sanka

bug fixes in index