Fix the vendorcast bug - issue #190