Avoid undefined variable notice
Merge pull request #1 from myurasov/patch-1

Avoid undefined offset notice