fixed some bugs with the vendor path