fixed delegate on iOS8