fix bug of finish exam popup reappearing