object factory fix