Another small bug fix for page resizing