Added fix for iphone/ipad