fix iphone overflow issues