Fix page script loading error