Clears factory cache where it was missing
Adds clearing the factory cache to avoid side effects from mshoplib