Fix undefined offset/variable notices on index and in widgets.
Merge pull request #60 from DrewAPicture/notices

Fix undefined offset/variable notices on index and in widgets.