fix restart()