fix bugs for iphone