Fixed iOS8 issue.