Fixed iOS8 issues.