Fixing iPhone bugs