Fix a bug in restart logic introduced back in 60788f9f35