fix overflow issue on iphone