Workaround to prevent crashing while connecting to self.