Workaround for iphone bug