fix a glich for iphone/ipad