fixed error in vhost mode