Bug fixes in create virtual host.