Fix the page script bug.