fixing a bug in ContainerSingletonStrategy