Fixed iOS8 incompatibility