Fix the getInstance == null bug