string loop fix
Merge pull request #264 from Mancy/patch-3

string loop fix