offset fix

Avoid strings overlapping.
Merge pull request #2 from shinriyo/patch-3

offset fix