Fix hostname changing.