fixed ios6 bug