FIX: minor bug in factory location finder code