Fixed several bugs for action restart and new game.