update for support iOS6.x