fixed iOS8 crash issue