fix reversed if case + comment in doRestartChild