Fixing iphone bugs