fixed resizing issue on iphone