Fixed the bug where the server crashes when you refresh the page.