fix iOS 6 crash
Merge pull request #40 from mkutgt72/master

fix iOS 6 crash