fix bugs in create vhost