fix ios6 crash