fix brain game display problem in firefox