Corrected defect found in the factory.

Singleton wasn't being loaded on doc ready