fix possible unclear restart