fix bugs in create_vhost