fixed bug on deleting vendor and customer sub modules.