Fix relaunching logic.