Fixing bug with host name hardcoded