edit vendorid to idvendor on init