Fix notice about uninitialized index
Merge pull request #34 from kimausloos/master

Fix notice about uninitialized index