Fix the restart button bugginess