Added hack to recalculate the width of the page.