fixing iphone device_ready