Fix the error when loading a page