fix to prevent injection loop when using General class with an IoC system, by defering construction dependency