fix for second example in services/factory