Fix error in setting vhost-interface pointer in agent