Fix restarting supervisor