fix the page size shrinking