Fixed iOS8 issue.
Merge pull request #1 from uebo/master

Fixed iOS8 issue.