Proposed fix for pages issue.