fix bug which happens when double-clicking start button.