Fixed hostname bugs.