fixed bug in factory locator