fixed ios 6 crash