solved the problem that some pages may be loaded more than once