fix bug in search and game page