fix the bug about game page always running.