Fixing scope of hostname