fix query for iphone