Added check for ios8