Fixed a page loading bug