Fixed ios 8 crash