Fix Page setting function