fix getting the new hostname after initial hostname change