Fixed error in which virtual host was being retrieved