Fix for bug where main address is not updated when IP change is detected