fix page resizing issue