fix iPhone code