fix hostname race